package thread;

/*
 * @author zzr
 * @date: 2025/03/30  20:13
 * @description:
 */
public class ThreadDemo18 {
    public static void main(String[] args) {
        Object locker = new Object();
        Thread t = new Thread(() -> {
            synchronized (locker) {
                synchronized (locker) {
                    System.out.println("hello");
                }
            }
        });

        t.start();
    }
}
